package com.hnkywl.sts.entity.cwgl;

import com.hnkywl.sts.entity.BaseEntity;
import org.hibernate.annotations.Where;

import javax.persistence.*;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 13-7-2
 * Time: 下午4:04
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "T_BIZ_FZHS")
@Where(clause = "deleted!='1'")
public class Fzhs extends BaseEntity{
    @Id
    @SequenceGenerator(name = "seqFzhs", allocationSize = 1, sequenceName = "SEQ_BIZ_FZHS")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqFzhs")
    private Long id;
    //辅助核算类型
    private String type;
    //辅助核算代码
    private String code;
    //辅助核算名称
    private String name;
    //公司ID
    private Long gsId;
    //公司类型
    private String gstype;

    //其他凭证分录
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "QTPZFL_ID")
    private Qtpzfl qtpzfl;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Qtpzfl getQtpzfl() {
        return qtpzfl;
    }

    public void setQtpzfl(Qtpzfl qtpzfl) {
        this.qtpzfl = qtpzfl;
    }

    public Long getGsId() {
        return gsId;
    }

    public void setGsId(Long gsId) {
        this.gsId = gsId;
    }

    public String getGstype() {
        return gstype;
    }

    public void setGstype(String gstype) {
        this.gstype = gstype;
    }
}
